<!--
 * @Author: your name
 * @Date: 2021-04-23 10:46:09
 * @LastEditTime: 2021-04-23 23:51:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \undefinedd:\练习\canvas跟随鼠标移动的星星.html
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>北极光之夜。</title>
    <script type="text/javascript" src="canvasStar.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body{
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: rgb(18, 25, 65);
        }
        video{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -10;
           
        }
        h1{
            font-size: 5em;
            font-family: 'fangsong';
            color: rgb(14, 171, 243);
            text-shadow:  0 0 10px rgb(14, 171, 243);
        }
    </style>
</head>
<body>    
    <canvas id="canvas"></canvas>
    <h1>北极光之夜。</h1>
</body>
</html>